﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hangfire;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using NewRetail.Application.DataAccess;
using NewRetail.Application.Worker;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Serilog;
using StackExchange.Redis;
using System.IO;
using System.Text.Encodings.Web;
using System.Text.Unicode;
using Volo.Abp;
using Volo.Abp.AspNetCore.ExceptionHandling;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.Modularity;

namespace NewRetail.Application
{
    public static class NewRetailExtension
    {
        public static string GetRedisConnectionString(this IConfiguration config) => config["Redis:Configuration"] ?? throw new ArgumentNullException("请配置redis");
    }
}
